package cn.bgs.service.impl;

import cn.bgs.mapper.FloorMapper;
import cn.bgs.pojo.Cell;
import cn.bgs.pojo.Floor;
import cn.bgs.service.IFloorService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 楼层表 服务实现类
 * </p>
 *
 * @author cf
 * @since 2022-06-07
 */
@Service
public class FloorServiceImpl extends ServiceImpl<FloorMapper, Floor> implements IFloorService {

    @Override
    public List<Floor> appFindFloor(Integer cellId) {
        QueryWrapper<Floor> wrapper = new QueryWrapper<>();

        wrapper.eq("cell_id",cellId);
        return list(wrapper);
    }
}
